{config_load file="index.conf"}<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
    <card title="Send message">
        {include file="inc/global_menu.tpl"}

        <b><a href="/another/send/{$data.user_id}/">Send</a> message to 
        <a href="/another/profile/{$data.user_id}/">{$data.user_login|escape}</a></b><br />
        
        <b>{$error.empty}</b><br />
        
        {if !$send}
            Title <b>{$error.title}</b><br />
            <input type="text" name="title" value="{$form.title|escape}" maxlength="150" /><br />
            Message <b>{$error.message}</b><br />
            <textarea name="content" cols="25" rows="5">{$form.content|escape}</textarea><br />
            <anchor>Submit
                <go href="/{$sys_path}/" method="post">
                    <postfield name="form[title]" value="$(title)"/>
                    <postfield name="form[content]" value="$(content)"/>
                </go>
            </anchor>
        {else}
            <p>Message was send</p>
        {/if}<br />
        
        <a href="/another/index/{$data.user_id}/">User menu</a>
    </card>
</wml>